<?php
/**
 * QFrameWork
 *
 * @author: quyang
 * @date: 2010-1-17
 * @version: 1.0
 */

return array(
    'photo' => array(
		'host_m' => array(
			'mysql://'.$_SERVER['SINASRV_DB_USER'].':'.$_SERVER['SINASRV_DB_PASS'].'@'.$_SERVER['SINASRV_DB_HOST'].':'.$_SERVER['SINASRV_DB_PORT'].'/'.$_SERVER['SINASRV_DB_NAME'],
			'mysql://'.$_SERVER['SINASRV_DB3_USER'].':'.$_SERVER['SINASRV_DB3_PASS'].'@'.$_SERVER['SINASRV_DB3_HOST'].':'.$_SERVER['SINASRV_DB3_PORT'].'/'.$_SERVER['SINASRV_DB3_NAME'],
			'mysql://'.$_SERVER['SINASRV_DB5_USER'].':'.$_SERVER['SINASRV_DB5_PASS'].'@'.$_SERVER['SINASRV_DB5_HOST'].':'.$_SERVER['SINASRV_DB5_PORT'].'/'.$_SERVER['SINASRV_DB5_NAME'],
			'mysql://'.$_SERVER['SINASRV_DB7_USER'].':'.$_SERVER['SINASRV_DB7_PASS'].'@'.$_SERVER['SINASRV_DB7_HOST'].':'.$_SERVER['SINASRV_DB7_PORT'].'/'.$_SERVER['SINASRV_DB7_NAME'],
		),  //master
			'host_s' => array(
			'mysql://'.$_SERVER['SINASRV_DB_USER_R'].':'.$_SERVER['SINASRV_DB_PASS_R'].'@'.$_SERVER['SINASRV_DB_HOST_R'].':'.$_SERVER['SINASRV_DB_PORT_R'].'/'.$_SERVER['SINASRV_DB_NAME_R'],
			'mysql://'.$_SERVER['SINASRV_DB3_USER_R'].':'.$_SERVER['SINASRV_DB3_PASS_R'].'@'.$_SERVER['SINASRV_DB3_HOST_R'].':'.$_SERVER['SINASRV_DB3_PORT_R'].'/'.$_SERVER['SINASRV_DB3_NAME_R'],
			'mysql://'.$_SERVER['SINASRV_DB5_USER_R'].':'.$_SERVER['SINASRV_DB5_PASS_R'].'@'.$_SERVER['SINASRV_DB5_HOST_R'].':'.$_SERVER['SINASRV_DB5_PORT_R'].'/'.$_SERVER['SINASRV_DB5_NAME_R'],
			'mysql://'.$_SERVER['SINASRV_DB7_USER_R'].':'.$_SERVER['SINASRV_DB7_PASS_R'].'@'.$_SERVER['SINASRV_DB7_HOST_R'].':'.$_SERVER['SINASRV_DB7_PORT_R'].'/'.$_SERVER['SINASRV_DB7_NAME_R'],
		),  //slave
		'db_hash_n' => 4,
		'table' => 'sp_photo',
		'table_hash_n' => 32,
		'fields_show'    => array('id' ,'pic_id' , 'pic_pid' , 'pic_is_visible'),
		'fields_commom'  => array('id' ,'pic_id' , 'pic_pid' , 'pic_uid' , 'pic_ctime' , 'pic_from' , 'pic_memo' , 'pic_tag' , 'pic_is_visible' , 'pic_is_original' , 'pic_stat'),
		'fields_detail' => array( 'id' ,'pic_id' , 'pic_pid' , 'pic_uid' , 'pic_ctime' , 'pic_from' , 'pic_memo' , 'pic_tag' , 'pic_is_visible' , 'pic_is_original' , 'pic_stat' , 'pic_camera' , 'pic_camera_model' , 'pic_is_exif' , 'pic_stime' , 'pic_x' , 'pic_y' , 'pic_area' , 'pic_suggest'),
	),
    'favorite' => array(
		'host_m' => array(
			'mysql://'.$_SERVER['SINASRV_DB_USER'].':'.$_SERVER['SINASRV_DB_PASS'].'@'.$_SERVER['SINASRV_DB_HOST'].':'.$_SERVER['SINASRV_DB_PORT'].'/'.$_SERVER['SINASRV_DB_NAME'],
		),  //master
		'host_s' => array(
			'mysql://'.$_SERVER['SINASRV_DB_USER_R'].':'.$_SERVER['SINASRV_DB_PASS_R'].'@'.$_SERVER['SINASRV_DB_HOST_R'].':'.$_SERVER['SINASRV_DB_PORT_R'].'/'.$_SERVER['SINASRV_DB_NAME_R'],
		),  //master
		'db_hash_n' => 1,
		'table' => 'sp_favorite',
		'table_hash_n' => 16,
	),
);
?>